<?php /*a:2:{s:70:"F:\phpstudy_pro\WWW\thinkphp5\application\admin\view\article\edit.html";i:1637938908;s:69:"F:\phpstudy_pro\WWW\thinkphp5\application\admin\view\public\bass.html";i:1637897184;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 基础表格</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    
    <link href="/static/admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/static/admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/static/admin/css/animate.min.css" rel="stylesheet">
    <link href="/static/admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <script src="../../../../public/static/admin/js/plugins/validate/messages_zh.min.js"></script>
    
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            
<div class="ibox-content">
  <form class="form-horizontal m-t" id="commentForm" novalidate="novalidate" method="post" action="/admin/art/<?php echo htmlentities($data['id']); ?>">
<!--    请求头的伪装  -->
    <input type="hidden" name="_method" value="PUT"/>
    <div class="form-group">
      <label class="col-sm-3 control-label">栏目：</label>
        <?php echo htmlentities($data['cates_id']); ?>
      <div class="col-sm-8">
        <select class="form-control m-b" name="cates_id">
          <?php foreach($cdata as $item): ?>
          <option value="<?php echo htmlentities($item['id']); ?>"  <?php if($data['cates_id'] == $item['id']): ?> selected <?php endif; ?>
            ><?php echo htmlentities($item['cate_name']); ?></option>

          <?php endforeach; ?>
        </select>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">标题：</label>
      <div class="col-sm-8">
        <input   type="text" value="<?php echo htmlentities($data['title']); ?>" class="form-control"  name="title" >
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">描述：</label>
      <div class="col-sm-8">
        <input  type="text" class="form-control" value="<?php echo htmlentities($data['desn']); ?>" name="desn" >

      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">内容：</label>
      <div class="col-sm-8">
        <textarea id="body" name="body"  ><?php echo htmlentities($data['body']); ?></textarea>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-4 col-sm-offset-3">
        <button class="btn btn-primary" type="submit">修改</button>
      </div>
    </div>
  </form>
</div>

        </div>
    </div>
</div>
<script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/static/admin/js/plugins/peity/jquery.peity.min.js"></script>
<script src="/static/admin/js/content.min.js?v=1.0.0"></script>
<script src="/static/admin/js/plugins/iCheck/icheck.min.js"></script>
<script src="/static/admin/js/demo/peity-demo.min.js"></script>


<script src="/static/admin/js/plugins/validate/jquery.validate.min.js"></script>
<script src="/static/admin/js/plugins/validate/messages_zh.min.js"></script>
<script src="/static/admin/js/demo/form-validate-demo.min.js"></script>

<!--ueditor-->
<!-- 配置文件 -->
<script type="text/javascript" src="/static/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/static/ueditor/ueditor.all.js"></script>


<script>
  //前端js验证
  $('#commentForm').validate({
    rules:{
      title:"required",
      desn:"required",
    },
    messages:{
      title:{
        required:"标题必须填写"
      },
      desn:{
        required:"描述必须填写"
      },
    },
    submitHandler:function (form) {
      // alert('确认提交吗?')
      form.submit();
    }

  });
  //实例化编辑器


  var ue = UE.getEditor('body', {
    autoHeight: false
  });



</script>





</body>
</html>
